package com.oa.bean;

import java.util.HashSet;
import java.util.Set;


/**
 * Emp entity. @author MyEclipse Persistence Tools
 */

public class Emp  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Dept dept;
     private String loginname;
     private String psw;
     private String img;
     private String sex;
     private Integer flag;
     private Integer admin;
     private String remark;
     private String truename;
     private Integer is = 1;
     private Set customers = new HashSet(0);


    // Constructors

    /** default constructor */
    public Emp() {
    }

    
    /** full constructor */
    public Emp(Dept dept, String loginname, String psw, String img, String sex, Integer flag, Integer admin, String remark, String truename, Integer is, Set customers) {
        this.dept = dept;
        this.loginname = loginname;
        this.psw = psw;
        this.img = img;
        this.sex = sex;
        this.flag = flag;
        this.admin = admin;
        this.remark = remark;
        this.truename = truename;
        this.is = is;
        this.customers = customers;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Dept getDept() {
        return this.dept;
    }
    
    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String getLoginname() {
        return this.loginname;
    }
    
    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getPsw() {
        return this.psw;
    }
    
    public void setPsw(String psw) {
        this.psw = psw;
    }

    public String getImg() {
        return this.img;
    }
    
    public void setImg(String img) {
        this.img = img;
    }

    public String getSex() {
        return this.sex;
    }
    
    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getFlag() {
        return this.flag;
    }
    
    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getAdmin() {
        return this.admin;
    }
    
    public void setAdmin(Integer admin) {
        this.admin = admin;
    }

    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTruename() {
        return this.truename;
    }
    
    public void setTruename(String truename) {
        this.truename = truename;
    }

    public Integer getIs() {
        return this.is;
    }
    
    public void setIs(Integer is) {
        this.is = is;
    }

    public Set getCustomers() {
        return this.customers;
    }
    
    public void setCustomers(Set customers) {
        this.customers = customers;
    }


    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", dept=" + dept +
                ", loginname='" + loginname + '\'' +
                ", psw='" + psw + '\'' +
                ", img='" + img + '\'' +
                ", sex='" + sex + '\'' +
                ", flag=" + flag +
                ", admin=" + admin +
                ", remark='" + remark + '\'' +
                ", truename='" + truename + '\'' +
                ", is=" + is +
                ", customers=" + customers +
                '}';
    }
}